package top.mcwebsite.playandroid.business.me.impl.api

import retrofit2.http.GET
import retrofit2.http.Path
import top.mcwebsite.playandroid.business.me.impl.coin_rank.vm.CoinRankViewModel
import top.mcwebsite.playandroid.business.me.impl.model.CoinFetchItemModel
import top.mcwebsite.playandroid.business.me.impl.model.CoinRankItemModel
import top.mcwebsite.playandroid.business.me.impl.model.CollectionArticleModel
import top.mcwebsite.playandroid.business.me.impl.model.WebsiteModel
import top.mcwebsite.playandroid.common.network.model.ApiResult
import top.mcwebsite.playandroid.common.network.model.PageModel
import top.mcwebsite.playandroid.common.network.model.RespModel

interface MeApiService {

    @GET("lg/collect/list/{page}/json")
    suspend fun collectionArticles(@Path("page") page: Int): RespModel<PageModel<CollectionArticleModel>>

    @GET("lg/collect/usertools/json")
    suspend fun collectionWebsites(): RespModel<WebsiteModel>

    @GET("lg/coin/list/{page}/json")
    suspend fun userCoinList(@Path("page") page: Int) : ApiResult<RespModel<PageModel<CoinFetchItemModel>>>

    @GET("coin/rank/{page}/json")
    suspend fun coinRank(@Path("page") page: Int) : ApiResult<RespModel<PageModel<CoinRankItemModel>>>
}